import Vue from "vue";
import App from "./App.vue";

import router from "@/router/router.js";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/index.less';

import axios from 'axios'; //导入axios
axios.defaults.baseURL = 'http://172.27.25.19:8092';  //配置根域名
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
Vue.prototype.$ajax = axios;  //把axios挂载到Vue的原型上

Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
